package co.fitstart.mobile.service;

import java.math.BigDecimal;

import co.fitstart.entity.user.User;
import co.fitstart.entity.user.distributor.Distributor;

/**
 * 
 * @author mohanlan
 *
 */
public interface DistributorService {
    
    /**
     * 
     * @param user
     */
    public Distributor load(User user);
    
    /**
     * 
     * @param qrcode
     */
    public void saveQrcode(Distributor distributor, String qrcode);
    
    /**
     * 
     * @param distributorId
     * @param user
     */
    public void createRelation(Long distributorId, User user);
    
    /**
     * 
     * @param distributor
     * @param wechatId
     * @param account
     * @param realName
     */
    public void editAccount(Distributor distributor, String wechatId, String account, String realName);
    
    /**
     * 
     * @param distributor
     * @param offer
     */
    public void withdraw(Distributor distributor, BigDecimal offer);
    
}
